#What Javascript Static Initialization Blocks
Explore tagged Tumblr posts
javascript-tutorial · 23 days ago
Text
Master JavaScript: Step-by-Step Tutorial for Building Interactive Websites
JavaScript Tutorial
Tumblr media
Master JavaScript: Step-by-Step Tutorial for Building Interactive Websites
In the evolving world of web development, JavaScript remains one of the most powerful and essential programming languages. Whether you're building simple webpages or full-fledged web applications, JavaScript gives life to your content by making it interactive and dynamic. This JavaScript Tutorial offers a beginner-friendly, step-by-step guide to help you understand core concepts and begin creating responsive and engaging websites.
What is JavaScript?
JavaScript is a lightweight, high-level scripting language primarily used to create dynamic and interactive content on the web. While HTML structures the webpage and CSS styles it, JavaScript adds interactivity—like handling clicks, updating content without refreshing, validating forms, or creating animations.
Initially developed for client-side scripting, JavaScript has evolved significantly. With the rise of environments like Node.js, it is now also used for server-side programming, making JavaScript a full-stack development language.
Why Learn JavaScript?
If you're looking to become a front-end developer or build web-based applications, JavaScript is a must-have skill. Here’s why:
It runs on all modern browsers without the need for plugins.
It’s easy to learn but incredibly powerful.
It works seamlessly with HTML and CSS.
It powers popular frameworks like React, Angular, and Vue.js.
It’s in high demand across the tech industry.
This JavaScript Tutorial is your gateway to understanding this versatile language and using it effectively in your web projects.
Getting Started: What You Need
To start coding in JavaScript, all you need is:
A modern browser (like Chrome or Firefox)
A text editor (such as Visual Studio Code or Sublime Text)
Basic knowledge of HTML and CSS
No complex setups—just open your browser and you're ready to go!
Step 1: Your First JavaScript Code
JavaScript code can be embedded directly into HTML using the <script> tag.
Example:<!DOCTYPE html> <html> <head> <title>JavaScript Demo</title> </head> <body> <h1 id="demo">Hello, World!</h1> <button onclick="changeText()">Click Me</button> <script> function changeText() { document.getElementById("demo").innerHTML = "You clicked the button!"; } </script> </body> </html>
Explanation:
The onclick event triggers the changeText() function.
document.getElementById() accesses the element with the ID demo.
.innerHTML changes the content of that element.
This simple example showcases how JavaScript can make a static HTML page interactive.
Step 2: Variables and Data Types
JavaScript uses let, const, and var to declare variables.
Example:let name = "Alice"; const age = 25; var isStudent = true;
Common data types include:
Strings
Numbers
Booleans
Arrays
Objects
Null and Undefined
Step 3: Conditional Statements
JavaScript allows decision-making using if, else, and switch.let age = 20; if (age >= 18) { console.log("You are an adult."); } else { console.log("You are a minor."); }
Step 4: Loops
Use loops to execute code repeatedly.for (let i = 0; i < 5; i++) { console.log("Iteration:", i); }
Other types include while and do...while.
Step 5: Functions
Functions are reusable blocks of code.function greet(name) { return "Hello, " + name + "!"; } console.log(greet("Alice")); // Output: Hello, Alice!
Functions can also be anonymous or arrow functions:const greet = (name) => "Hello, " + name;
Step 6: Working with the DOM
The Document Object Model (DOM) allows you to access and manipulate HTML elements using JavaScript.
Example: Change element style:document.getElementById("demo").style.color = "red";
You can add, remove, or change elements dynamically, enhancing user interaction.
Step 7: Event Handling
JavaScript can respond to user actions like clicks, keyboard input, or mouse movements.
Example:document.getElementById("myBtn").addEventListener("click", function() { alert("Button clicked!"); });
Step 8: Arrays and Objects
Arrays store multiple values:let fruits = ["Apple", "Banana", "Mango"];
Objects store key-value pairs:let person = { name: "Alice", age: 25, isStudent: true };
Real-World Applications of JavaScript
Now that you have a basic grasp, let’s explore how JavaScript is used in real-life projects. The applications of JavaScript are vast:
Interactive Websites: Menus, image sliders, form validation, and dynamic content updates.
Single-Page Applications (SPAs): Tools like React and Vue enable dynamic user experiences without page reloads.
Web Servers and APIs: Node.js allows JavaScript to run on servers and build backend services.
Game Development: Simple 2D/3D browser games using HTML5 Canvas and libraries like Phaser.js.
Mobile and Desktop Apps: Frameworks like React Native and Electron use JavaScript for cross-platform app development.
Conclusion
Through this JavaScript Tutorial, you’ve taken the first steps in learning a foundational web development language. From understanding what is javascript is now better.
As you continue, consider exploring advanced topics such as asynchronous programming (promises, async/await), APIs (AJAX, Fetch), and popular frameworks like React or Vue.
0 notes
souhaillaghchimdev · 3 months ago
Text
Backend Web Development Using Node.js
Tumblr media
Node.js has revolutionized web development by enabling developers to write server-side code using JavaScript. If you're already comfortable with JavaScript on the frontend, transitioning to backend development with Node.js is a logical next step. In this post, we'll introduce the fundamentals of backend development using Node.js and how to build scalable, efficient web applications.
What is Node.js?
Node.js is a JavaScript runtime built on Chrome’s V8 engine. It allows developers to use JavaScript to write backend code, run scripts outside the browser, and build powerful network applications. Node.js is known for its non-blocking, event-driven architecture, making it highly efficient for I/O-heavy applications.
Why Use Node.js for Backend Development?
JavaScript Everywhere: Use a single language for both frontend and backend.
Asynchronous and Non-blocking: Great for handling many connections at once.
Vast Ecosystem: Thousands of modules available via npm (Node Package Manager).
Scalability: Ideal for microservices and real-time applications like chats or games.
Setting Up a Node.js Project
Install Node.js from nodejs.org
Create a new project folder:
Initialize the project:
Create your main file:
Basic Server Example
const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello, Node.js Backend!'); }); server.listen(3000, () => { console.log('Server running on http://localhost:3000'); });
Using Express.js for Easier Development
Express.js is a popular web framework for Node.js that simplifies routing and middleware management.npm install express const express = require('express'); const app = express(); app.get('/', (req, res) => { res.send('Welcome to the Node.js backend!'); }); app.listen(3000, () => { console.log('Express server running on http://localhost:3000'); });
Common Backend Tasks with Node.js
Handle routing and API endpoints
Connect to databases (MongoDB, PostgreSQL, etc.)
Manage user authentication and sessions
Process form data and JSON
Serve static files
Popular Libraries and Tools
Express.js: Web framework
Mongoose: MongoDB object modeling
dotenv: Environment variable management
JWT: JSON Web Tokens for authentication
Nodemon: Auto-restart server on code changes
Best Practices
Use environment variables for sensitive data
Structure your project using MVC or service-based architecture
Use middleware for error handling and logging
Validate and sanitize user input
Secure your APIs with authentication and rate-limiting
Conclusion
Node.js is a powerful and flexible choice for backend development. Its ability to use JavaScript on the server-side, combined with a rich ecosystem of libraries, makes it ideal for building modern web applications. Start small, experiment with Express, and gradually add more features to build robust backend services.
0 notes
algosoftapps · 1 year ago
Text
Node.js Performance Optimization Techniques Every Developer Should Know
Introduction
Node.js has become a popular choice for building scalable and high-performance web applications. However, as your application grows, you may encounter performance bottlenecks that can affect the user experience. In this article, we will explore essential Node JS development company performance optimization techniques that every developer should be familiar with to ensure their applications run smoothly and efficiently.
Code Profiling and Analysis
Before diving into optimizations, it's crucial to identify performance bottlenecks. Utilize tools like Node.js built-in profiler, V8 profiler, or third-party tools like clinic.js and New Relic. Profiling helps you understand where your application spends most of its time, allowing you to focus your optimization efforts on the critical areas.
Caching Strategies
Caching is a powerful technique to reduce response times and enhance performance. Implement caching at different levels: application-level caching, in-memory caching using tools like Redis, and content delivery network (CDN) caching for static assets. Caching can significantly reduce the load on your server by serving frequently requested data from a cache rather than regenerating it on every request.
Optimizing Database Queries
Database queries often contribute to performance bottlenecks. Optimize your queries by indexing frequently used fields, using appropriate join strategies, and avoiding unnecessary queries. Consider using an Object-Relational Mapping (ORM) library like Sequelize or Mongoose, which can help optimize and abstract away some of the database-related complexities.
Concurrency and Parallelism
Node.js is single-threaded, but it supports concurrency through an event-driven, non-blocking I/O model. Leverage this model by using the cluster module to create multiple worker processes that can handle requests concurrently. Additionally, consider using tools like the async library or native Promises to handle asynchronous operations in a more organized and efficient manner.
Load Balancing
Distribute incoming traffic across multiple server instances using load balancing. This helps in achieving better resource utilization and scalability. Popular tools like Nginx and HAProxy can be used for load balancing. Additionally, cloud providers often offer load balancing services that can be easily integrated into your infrastructure.
Optimizing Dependencies
Regularly update your dependencies to benefit from performance improvements and security updates. Use tools like npm audit to identify and address security vulnerabilities in your dependencies. Minimize the number of dependencies and only include the modules you truly need to reduce the application's footprint.
Compressing Responses
Reduce the amount of data transmitted between the server and clients by enabling compression. Node.js supports response compression through modules like compression. This can significantly improve the speed of your application, especially for clients on slower networks.
Gzip Compression
Enable Gzip compression for static assets to further reduce the size of files sent over the network. This is particularly effective for large files like stylesheets and scripts. Many web servers and frameworks, including Express.js, provide easy ways to enable Gzip compression.
Optimizing Frontend Assets
Optimize and minify your frontend assets, such as CSS, JavaScript, and images. Tools like Webpack and Babel can help bundle and minify your scripts, reducing their size and improving load times. Additionally, consider lazy loading assets to load only what is necessary for the current page, improving initial page load times.
Monitoring and Logging
Implement robust monitoring and logging solutions to keep track of your application's performance in real-time. Tools like Prometheus and Grafana can help you create dashboards and set up alerts for abnormal behavior. Detailed logs can provide insights into issues, helping you diagnose and address performance problems promptly.
Conclusion
Node JS development company offers a powerful platform for building scalable and performant applications, but optimizing for performance is an ongoing process. By incorporating these Node.js performance optimization techniques into your development workflow, you can ensure that your applications deliver a fast and responsive user experience, even as they scale. Regularly analyze and profile your code, stay updated on best practices, and adapt your strategies to the evolving needs of your application.
0 notes
worldgoit · 2 years ago
Text
WordPress: Eliminate Render-Blocking Resources for a Faster Website
Tumblr media
In today's fast-paced digital world, a slow website can be a major turn-off for visitors. It's not just user experience that's at stake – search engines like Google also consider website speed as a ranking factor. One common issue that can slow down your WordPress website is render-blocking resources. In this article, we'll delve into what render-blocking resources are, why they matter, and most importantly, how to eliminate them to ensure your WordPress website performs at its best.
Originhttps://worldgoit.com/archives/posts/software-development/wordpress-eliminate-render-blocking-resources-for-a-faster-website/
Table of Contents
- Introduction - Understanding Render-Blocking Resources - Impact on Website Performance - Identifying Render-Blocking Resources - Best Practices for Elimination - 1. Asynchronous Loading - 2. Deferred JavaScript - 3. Browser Caching - 4. Content Delivery Networks (CDNs) - 5. Minification and Compression - 6. Prioritize Above-the-Fold Content - 7. Modern Web Development Tools - Implementing Solutions Step-by-Step - Conclusion - FAQs
Introduction
When a user visits your WordPress website, their browser needs to load various resources like HTML, CSS, and JavaScript. Render-blocking resources are JavaScript and CSS files that prevent the page from loading until they are fully processed. This can significantly slow down the rendering of your web page, leading to a poor user experience.
Understanding Render-Blocking Resources
Render-blocking resources act as roadblocks for your website's rendering process. Browsers pause rendering to fetch and process these resources, delaying the display of the page content. JavaScript files, especially those placed in the header, are major culprits. CSS files can also impact rendering if not handled properly.
Impact on Website Performance
Website speed matters more than ever in a world where attention spans are shrinking. Studies show that visitors tend to abandon sites that take more than a couple of seconds to load. Additionally, search engines consider page speed as a ranking factor, meaning slower websites might rank lower in search results.
Identifying Render-Blocking Resources
To tackle this issue, you must first identify which resources are causing the delay. There are various online tools and plugins available that can analyze your website and provide a list of render-blocking resources. This step is crucial in understanding what needs to be optimized.
Best Practices for Elimination
1. Asynchronous Loading By loading resources asynchronously, you allow the browser to continue rendering the page while fetching the resources in the background. This can greatly improve the perceived loading speed. 2. Deferred JavaScript Deferring JavaScript means postponing its execution until after the initial rendering. This prevents JavaScript from blocking other resources and speeds up the page load. Recommendation Plugin and Youtube Async JavaScript Autoptimize https://youtu.be/ElpcjGBgTGk?si=ue1rvzQPs0YI971R 3. Browser Caching Leverage browser caching to store static resources locally. Returning visitors will then have these resources cached, resulting in faster load times. 4. Content Delivery Networks (CDNs) CDNs distribute your website's resources across multiple servers worldwide. This reduces the physical distance between the user and the server, leading to quicker resource retrieval. 5. Minification and Compression Minify your CSS and JavaScript files by removing unnecessary characters. Additionally, compressing these files reduces their size, making them quicker to load. 6. Prioritize Above-the-Fold Content Load essential resources first, especially those needed for above-the-fold content. This way, users can see and interact with the main content sooner. 7. Modern Web Development Tools Consider using modern build tools like Webpack or Rollup. These tools can bundle and optimize your resources, reducing the number of requests made by the browser
Implementing Solutions Step-by-Step
- Start by analyzing your website's current performance using online tools. - Identify the specific resources causing the delay. - Update your WordPress theme and plugins to their latest versions. - Utilize asynchronous loading for non-essential resources. - Defer JavaScript where possible and optimize CSS delivery. - Leverage browser caching and consider a reliable CDN. - Minify and compress CSS and JavaScript files. - Prioritize above-the-fold content for faster initial rendering. - Explore modern web development tools for advanced optimization.
Conclusion
A fast-loading website is a key factor in retaining visitors and achieving higher search engine rankings. By understanding and addressing render-blocking resources, you can significantly improve your WordPress site's performance. Implementing the strategies mentioned in this article will help you create a smoother, more enjoyable user experience while boosting your website's SEO efforts.  
Tumblr media
before after  
FAQs
Q1: What are render-blocking resources? Render-blocking resources are JavaScript and CSS files that prevent a webpage from rendering until they are fully loaded and processed. Q2: How do render-blocking resources affect my website? Render-blocking resources can slow down your website's loading speed, leading to a poor user experience and potentially lower search engine rankings. Q3: How can I identify render-blocking resources on my WordPress site? There are various online tools and plugins available that can analyze your website and provide a list of render-blocking resources. Q4: What is asynchronous loading? Asynchronous loading allows the browser to continue rendering a webpage while fetching resources in the background, improving perceived loading speed. Q5: Can using a Content Delivery Network (CDN) help with render-blocking resources? Yes, a CDN can distribute your website's resources across multiple servers, reducing the distance between the user and the server and speeding up resource retrieval. Read the full article
1 note · View note
grapelimeinfotech · 2 years ago
Text
Web application development kochi
What are Web Applications?
Web applications, commonly known as web apps, are software programs that run on web browsers and serve various functions. Unlike traditional desktop applications, web apps are accessible through the internet, making them platform-independent and easily accessible on various devices. From social media platforms to cloud-based productivity tools, web apps have revolutionized the way we interact with technology.
The Evolution of Web App Development
Web app development has come a long way since the early days of the internet. Initially, simple static web pages dominated the online landscape. However, with the advent of dynamic web development technologies, such as PHP and JavaScript, web apps became more interactive and functional. Today, modern web app development leverages cutting-edge frameworks and tools to create powerful and efficient applications.
The Building Blocks: Frontend Development
Frontend development focuses on the user interface and user experience of web applications. It involves writing code using HTML, CSS, and JavaScript to create the visual elements and interactivity that users interact with.
HTML, CSS, and JavaScript
HTML (Hypertext Markup Language) is the standard markup language used to structure the content of web pages. It provides a skeleton for web apps, defining headings, paragraphs, images, and other elements.
CSS (Cascading Style Sheets) is used to style HTML elements, providing layout, colors, fonts, and animations to enhance the app's visual appeal.
JavaScript is a powerful scripting language that adds interactivity to web pages. It enables developers to create dynamic content, handle user interactions, and perform actions on the web app.
Frontend Frameworks: React, Angular, Vue.js
Frontend frameworks streamline the web app development process, providing pre-built components and libraries that simplify coding tasks. Popular frontend frameworks like React, Angular, and Vue.js are widely used for their versatility and developer-friendly features.
Powering the Backend: Backend Development
Backend development focuses on the server-side of web apps, handling data storage, processing, and managing interactions between the frontend and the server.
Server-Side Programming Languages: Node.js, Python, Ruby
Server-side programming languages are used to write the logic and business rules of web apps. Node.js, Python, and Ruby are popular choices for backend development due to their performance and ease of use.
Backend Frameworks: Express, Django, Ruby on Rails
Backend frameworks provide a structured approach to web app development, helping developers manage routes, databases, and other backend functionalities. Express for Node.js, Django for Python, and Ruby on Rails for Ruby are widely used backend frameworks.
The Marriage of Frontend and Backend: Full-Stack Development
Full-stack developers are proficient in both frontend and backend development, making them capable of handling all aspects of web app development.
The Role of Full-Stack Developers
Full-stack developers play a crucial role in web app development, as they bridge the gap between frontend and backend components. Their comprehensive knowledge allows them to create end-to-end solutions efficiently.
Pros and Cons of Full-Stack Development
Full-stack development offers several advantages, such as reduced dependency on multiple developers and streamlined communication between frontend and backend teams. However, the vast skillset required may lead to trade-offs in expertise compared to specialized developers.
1 note · View note
devsmitra · 2 years ago
Text
What, Why, and How Javascript Static Initialization Blocks?
1 note · View note
cryptocodereview-blog · 6 years ago
Text
Sparkster source code review
Sparkster has finally opened its code repositories to the public, and as the project has been somewhat in the centre of discussion in the crypto community, as well as marketed by one of the high profile crypto influencers, we have been quite curious to see the result of their efforts.
Tumblr media
The fundamental idea of the project is to provide a high-throughput decentralized cloud computing platform, with software developer kit (SDK) on top with no requirement for programming expertise (coding is supposed to be done in plain English). The idea of plain English coding is far from new and has been emerging more than a few times over the years, but never gotten any widespread traction. The reason in our opinion is that professional developers are not drawn to simplified drag & drop plain language programming interfaces, and non-developers (which is one of the potential target groups for Sparkster) are, well, most probably just not interested in software development altogether.
However the focus of this article is not to scrutinize the use case scenarios suggested by Sparkster (which do raise some question marks) but rather to take a deep look into the code they have produced. With a team counting 14 software developers and quite a bit of runway passed since their ICO in July 2018, our expectations are high.
Non-technical readers are advised to skip to the end for conclusions.
Source code review Sparkster initially published four public repositories in their github (of which one (Sparkster) was empty). We noticed a lack of commit history which we assume is due to a transfer of the repos from a private development environment into github. Three of the above repositories were later combined into a single one containing subfolders for each system element.
The first impression from browsing the repositories is decent after recent cleanups by the team. Readme has been added to the main repository with information on the system itself and installation instructions (Windows x64 only, no Linux build is available yet)
However, we see no copyright notes anywhere in the code developed by Sparkster, which is quite unusual for an open source project released to the public.
Below is a walk-thru of the three relevant folders containing main system components under the Decentralized-Cloud repository and a summary of our impression.
Master-Node folder The source code is written in C++. Everything we see is very basic. In total there are is not a lot of unique code (we expected much more given the development time spent) and a lot of the recently added code is GNU/forks from other projects (all according to the copyright notes for these parts).
An interesting part is, that if this master node spawned the compute node for this transaction, the master node will request the compute node to commit the transaction. The master nodes takes the control over more or less all communication to stakeholders such as clients.  The master node will send a transaction to 20 other master nodes.
The lock mechanism during voting is standard: nodes booting in the middle of voting are locked and cannot participate to avoid incorrect results.
We cannot see anything in the code that differentiates the node and makes it special in any way, i.e. this is blockchain 101.
Compute-Node folder All source files sum up to a very limited amount of code. As the master node takes over a lot of control, the compute node focuses on the real work. A minimalistic code is generally recommended in a concept like this, but this is far less than expected.
We found the “gossip” to 21 master nodes before the memory gets erased and the compute node falls back to listen mode.
The concept of 21 master nodes is defined in the block producer. Every hour a new set of 21 master nodes become the master node m21.
“At any given point in time, 21 Master Nodes will exist that facilitate consensus on transactions and blocks; we will call these master nodes m21. The nodes in m21 are selected every hour through an automated voting process”
(Source: https://github.com/sparkster-me/Decentralized-Cloud)
The compute node is somewhat the heart of the project but is yet again standard without any features giving it high performance capability.
Storage-Node folder The source code is again very basic. Apart from this, the code is still at an experimental stage with e.g. buffer overflow disabling being utilized, something that should not be present at this stage of development.
Overall the storage uses json requests and supports/uses the IPFS (InterPlanetary File System). IPFS is an open source project and used for storing and sharing hypermedia in a distributed file system. The storage node not only handles the storage of data, it also responds to some client filter requests.
Conclusion In total Sparkster has produced a limited amount of very basic code, with a team of 14 developers at their disposal. As their announcement suggests that this is the complete code for their cloud platform mainnet, we must assume that the productivity of the team has been quite low over the months since funds were raised, since none of the envisioned features for high performance are yet implemented.
The current repository is not on par with standards for a mainnet release and raises some serious question marks about the intention of the project altogether. The impression is that the team has taken a very basic approach and attempted to use short cuts in order to keep their timelines towards the community, rather than develop something that is actually unique and useful. This is further emphasized by the fact that the Sparkster website and blockchain explorer is built on stock templates. We don’t see any sign of advanced development capability this far.
Based on what we see in this release Sparkster is currently not a platform for ”full scale support to build AI powered apps” as their roadmap suggest and we are puzzled by the progress and lack of provisioning of any type of SDK plugin. The Sparkster team has a lot to work on to even be close to their claims and outlined roadmap.
Note: we have been in contact with the Sparkster team prior to publishing this review, in order to provide opportunity for them to comment on our observations. Their answers are listed below  but doesn’t change our overall conclusions of the current state of Sparkster development.
“We use several open source libraries in our projects. These include OpenDHT, WebSocket++, Boost, and Ed25519. In other places, we’ve clearly listed where code is adapted from in the cases where we’ve borrowed code from other sources. We’ve used borrowed code for things like getting the time from a time server: a procedure that is well documented and for which many working code examples already exist, so it is not necessary for us to reinvent the wheel. However, these cases cover a small portion of our overall code base.
Our alpha net supports one cell, and our public claims are that one cell can support 1,000 TPS. These are claims that we have tested and validated, so the mainnet is in spec. You will see that multi cell support is coming in our next release, as mentioned in our readme. Our method of achieving multi cell support is with a well understood and documented methodology, specifically consistent hashing. However, an optimization opportunity, we’re investiging LSH over CS. This is an optimization that was recommended by a member of our Tech Advisory Board, who is a PHD in Computer Science at the University of Cambridge.
Our code was made straightforward on purpose. Most of its simplicity comes from its modular design: we use a common static library in which we’ve put common functionality, and this library is rightfully called BlockChainCommon.lib. This allows us to abstract away from the individual nodes the inner workings of the core components of our block chain, hence keeping the code in the individual nodes small. This allows for a high level of code reusability. In fact, in some cases this modular design has reduced a node to a main function with a series of data handlers, and that’s all there is to it. It allows us to design a common behavior pattern among nodes: start up OpenDHT, register data handlers using a mapping between the ComandType command and the provided lambda function, call the COMM_PROTOCOL_INIT macro, enter the node’s forever loop. This way, all incoming data packets and command processors are handled by BlockChainCommon, and all nodes behave similarly: wait for a command, act on the command. So while this design gives the impression of basic code, we prefer simplicity over complexity because it allows us to maintain the code and even switch out entire communications protocols within a matter of days should we choose to do so. As far as the Compute Node is concerned, we use V8 to execute the javascript which has a proven track record of being secure, fast and efficient.
We’ve specifically disabled warning 4996 because we are checking for buffer overflows ourselves, and unless we’re in debug mode, we don’t need the compiler to warn about these issues. This also allows our code to be portable, since taking care of a lot of these warnings the way the VCC compiler wants us to will mean using Microsoft-specific functions are portable (other platforms don’t provide safe alternatives with the _s suffix, and even Microsoft warns about this fact here: https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?view=vs-2017.) To quote: “However, the updated names are Microsoft-specific. If you need to use the existing function names for portability reasons, you can turn these warnings off.”
1 note · View note
mobappdevelopmentcompany · 2 years ago
Text
Top 10 Angular-Built Websites And Applications
Tumblr media
Angular is a popular front-end web application framework that is extensively used for designing single-page web applications. This framework was developed by Google. It has been a leader among the most popular frameworks on the web since the moment it came into being in 2009 and continues to be of great significance. Its first version was AngularJS, also known as Angular 1. For many years, this version was widely used, and several well-known apps were created using AngularJS. However, once Angular v.2 was released, it lost the "JS" ending and the framework is now just known as Angular.
Angular is used to create a lot of websites and applications because of its outstanding functionality, simplicity, and potential. Websites built with Angular are user-friendly, feature-rich, and responsive. Angular apps and websites have established a strong reputation and have been used by tech giants like Microsoft, Gmail, and Samsung. With time, Angular has continued to reach new heights, grabbing big fish in the industry like Gmail, PayPal, and Upwork. So, what exactly is Angular? Let’s take a look!
What is Angular?
Unless you are already familiar with it, Angular is an open-source framework for web application development. Misko Hevery and Adam Abrons found Angular in 2009. It is based on TypeScript, a statically-typed superset of JavaScript, and provides a set of powerful features to design web applications. Web solutions built in Angular are scalable, dynamic, and responsive. Angular is a crucial component of the popular frontend development combo the ‘JavaScript Big 3’ – a combination of the frameworks React, Angular, and Vue.
It has features like MVC architecture, an extensible template language, bidirectional data flow, and HTML templates that make it easier and more convenient for web developers to create top-notch AngularJS websites. Angular also includes a powerful set of tools for managing application state, routing, form validation, etc. Moreover, it provides seamless integration with other popular libraries and frameworks, such as RxJS, Bootstrap, and Material Design.
Angular comes with a component-based architecture. An Angular application has a tree of components. Here, each component is a fundamental building block of the user interface. Components can be reused across different parts of an application and can communicate with each other using services.
Some of the key benefits of partnering with an AngularJS development company for web development include faster development time, better code organization and maintainability, improved performance, and an improved end-user experience. Angular is widely used by developers and companies around the world and has a large and active community of contributors and users.
Best Examples of Angular Applications and Websites
Tumblr media
1. Gmail
One of the top Angular application examples is Gmail. What’s a better way to prove Angular’s potential than by handling the world’s No. 1 email service? If you take a good look at the Gmail service, you will find out how powerful Angular is. Gmail has been using Angular since 2009. Gmail has more than 1.5 billion daily users. And, Angular helps it to effortlessly handle the heavy traffic generated by such a huge user base. As such, this single-page app runs speedily, flawlessly, and without crashes.
Take a look at the key features of Gmail! It offers functionalities like a simple and intuitive interface, data rendering on the front end, and offline access to cached data. Angular manages every action within a single HTML page, whether you're reading an email, writing a new message, or switching tabs. When new emails and messages come in, it provides data on the front end at once. Instantaneous initial loading takes no more than a few seconds, after which you can start working with emails and tabs right away. Even if you go offline, you can still get access to some of the features.
Gmail's innovative feature ‘live Hangouts chats’ is simple and yet, powerful. You can add Hangouts to your Angular apps. The other notable features include mail drafting with in-built syntax and grammar, predictive messaging, and spell-check.
2. PayPal
I am sure that most individuals, even the ones without technical backgrounds, know about this multinational payment company. This angular application acts as an electronic replacement for conventional paper methods like cheques and money orders and supports rapid online money transfers. The company operates as an online payment processor and more than 305 million people have active accounts on PayPal's platform. The app performs flawlessly and can handle substantial traffic.
Because PayPal is used for financial transactions, it requires an instant, real-time data transfer with high-tech security features. Thanks to Angular, the app caters to these requirements successfully. Using the Angular tool checkout.js, PayPal users enjoy a seamless checkout experience. Customers can make purchases and complete the entire transaction without ever leaving the website.
3. Forbes
Forbes is a popular American business magazine that publishes articles on business, industry, making investments, and topics associated with marketing. Related topics like technology, communications, science, politics, and law are covered by Forbes as well. The Forbes website was developed using Angular 9+ and various cutting-edge technologies, including Core-JS, BackboneJS, LightJS, and others. It is one of the most visited websites in the world with more than 74 million monthly users in the US.
Many Forbes readers belong to the business world or are celebrities. Hence, the website is expected to work smoothly and take minimal time to load accurate information from dependable sources. Thanks to Angular, Forbes offers an uninterrupted and enriching UX. Angular’s code reusability feature, makes the Forbes website performant on any operating system, browser, or device. Besides, the website boasts of features such as self-updating pages, an attractive design to attract attention, and simplicity in use.
4. Upwork
Upwork is one of the most popular Angular apps available. This service makes it possible for companies to locate freelancers, agencies, and independent professionals for any kind of project from any corner of the world. When the COVID-19 pandemic broke out three years ago, there was a recession that damaged the infrastructure of many industries. During such moments of crisis, Upwork helped many companies and freelancers by connecting them.
Using Upwork, businesses can find a freelancer who satisfies their specific requirements. At the same time, the platform helps freelancers to find out employers and projects that suit their requirements. Freelancers can search for jobs by applying filters like project type, project length, etc. So this "world’s work marketplace" has millions of users on its website daily, which is operated smoothly by Angular. Upwork uses Angular as part of its technology stack to offer a responsive single-page interface. Thanks to Angular, Upwork has features like mobile app calling, payment getaways, intuitive architecture, and private security and verification mechanisms. Like many other Angular-written websites, Upwork exhibits excellent webpage performance.
5. Deutsche Bank
Another great example of an AngularJS website is Deutsche Bank, a German investment and financial services company that uses AngularJS. Angular was used to create the developer portal's front page. Deutsche Bank’s Application Programming Interface can be accessed through the developer’s portal. This API serves as a point of access for the numerous international organizations looking to integrate the transaction systems of Deutsche Bank into their web software solutions.
6. Weather.com
This website, as its name implies, provides weather forecasts. It was bought by IBM in 2015. When examining Angular websites, weather.com is one to keep an eye out for. There is no better way to find out how powerful Angular is than to analyze how weather.com works.
In addition to providing accurate hourly and daily weather forecasts, the website also provides daily headlines, live broadcasts, factoids, air quality tracking, and entertainment material. The best example of how Angular functions is Weather.com, which displays real-time broadcasting on websites or apps with numerous geographical locations. Angular makes it simpler to process data on websites with a large number of users and frequent changes. Not only does it show high-definition aerial shots of places, but also provides alerts on severe weather conditions and weather-related disasters.
7. Delta Airlines
Among many AngularJS web application development models, one such website is Delta. One of the most competitive American Airlines, Delta Air Lines provides flight tickets to 300+ locations in 60 different countries. They, therefore, have a large number of users on their website at once, thanks to this level of service.
Angular 9+ was used by Delta to create a robust and quick website. Delta has deployed the framework on its homepage, and that decision has been a game changer for them.
8. Guardian
The Guardian is a UK-based newspaper that was started in 1821. It’s not surprising that The Guardian has developed into a dependable source of news and information throughout the world, given that it first provided news offline and later had a sizable online presence.
It is available online and has been developed with AngularJS. It provides reliable news from all over the world and reaches several thousand people every day, be it about finance, football, etc. So due to the endless number of people spending time on their websites and generating traffic, they used AngularJS to create a highly readable and accessible web app.
9. Wikiwand
Wikiwand founder Lior Grossman once said: "It did not make rational sense to us that what is now the fifth most widely visited website in the globe, which is used by nearly one-half of the world's population, has an interface that has not been up-to-date in more than a decade." We realized that Wikipedia’s UI was cluttered, tricky to read (large segments of tiny text), impossible to navigate, and not user-friendly. So, their team leveraged Angular app development to create Wikiwand, a software wrapper meant for the articles of Wikipedia.
From children to adults, we all use Wikipedia as our source of information for so many things. Even though we all love Wikipedia, we will have to admit its interface is outdated, difficult to read and navigate, full of distracting stuff, etc. This is where Wikiwand uses its magic; it provides a modern touch to Wikipedia pages with the use of Angular technology. It has enhanced the readability as well as navigation. Now, you get advanced navigation features on both the web and mobile apps which ultimately results in a better user experience.
10. Google
Google uses a lot of technologies to improve its services. Given that Google created Angular in the first place, it makes sense that Google would use it. That’s why it is one of the best examples of an Angular application. Because Angular is so effective for single web pages, Google uses it in many of its products.
Google Play Store
Google Voice application
Google Open Source
Google Play Book
The Google.org website
Google Arts and Culture
Wrap Up:
This concludes our list of the top 10 Angular websites and Angular applications, and well-known companies that best demonstrate Angular's potential. Anything that well-known and large companies use must be of the highest caliber. The Angular webpages and web applications that are listed in this article are all widely recognized globally. If there is one thing you should take away from this, it should be that Angular is a flexible framework that can improve the usability and interactivity of your web applications.
Now that you've gotten some helpful recommendations on the kinds of projects for which this common framework is suitable, you know when it's most important to focus on building Angular webpages and which Angular tools to use to get the best results. Therefore, it is important to seek technical assistance from a specialized Angular development agency before beginning any project.
0 notes
jackleach · 2 years ago
Text
What are the criteria to hire a node js developer?
Introduction to Node.js
It is a cross-platform environment for executing JavaScript code outside an open-source browser. It's important to note that NodeJS is neither a framework nor a programming language. Most folks are perplexed and believe it is a framework or programming language. We frequently utilize Node.js to create backend services such as APIs, Web Apps, and Mobile Apps. Large corporations such as Paypal, Netflix, Walmart, and others use it in their manufacturing.
This programming language was created to enhance the capabilities of JavaScript in web browsers. Because Node.js features a non-blocking event-driven I/O mechanism, it's an excellent choice for building dependable and scalable apps. This language is being used by the
Hire Node.js developers
A Nodejs developer's primary role is writing, developing, and deploying web-based server-side programming to support business needs. A Nodejs developer is expected to have a good foundation and knowledge of many forms of JavaScript server-side programming, such as ExpressJS, StrongLoop, and others. Node js Backend or Backend development comprises the integration of third-party web services, and Node js developers assist frontend developers in completing the entire application development process.
Tumblr media
Developers that work with Node.js have a particular set of duties and expertise. It's more challenging to gain the skills required because it's a more sophisticated job that requires knowledge of multiple technologies, but it pays higher.
The most crucial Node.js developer requirements are mentioned below. If you want to get recruited, you'll need to know Node.js (and, by extension, JavaScript), but there's a little more to it. If you want to work as a Node.js developer, you need to look into the following skills. After reading all the responsibilities handled by the developer, you can hire nodejs developers at a cost-effective price and attain the benefits.
Node JS junior developer
JS knowledge is required.
experience in commercial development or a full-fledged pet project
a thorough understanding of the platform's features;\
Ability to type both statically and dynamically;
Working with the Framework skills;
Understanding software design principles, as well as a unit and integration testing.
Senior Node JS programmer
Knowledge of cloud infrastructure
a track record of working on a variety of initiatives;
The ability to solve abstractly phrased problems quickly and come up with novel solutions;
Work experience in a high-volume environment;
The ability to address difficulties with performance;
Ability to assist developers at a lower level;
Knowledge of software development methodologies, algorithms, data structures, and architectural approaches is required.
Understanding how microservices interact and more.
What Does It Cost To Hire A Node JS Developer?
The cost of a developer's services is one of the essential considerations when choosing one. This consumes a significant portion of the budget. The price may involve the efforts of various team members and will be determined by the amount of time spent on the project. In addition, the cost of nodejs development company of developer services can vary greatly depending on the specialist's location and experience.
Tumblr media
The starting salary of a Node js developer is between $70,492 and $72,000. The typical Node js developer pay for senior developers ranges between $110,000 and $130,000 per year.
It is critical to consider the developer's experience, review their portfolio of projects, and determine if they specialize in the areas required. You can sign up for consultation with the company of your choice if you want to estimate the cost of your project.
Factors influencing salary
The major drivers of IT talent pricing will always be market demand, experience level, education, and location. However, other characteristics can make one Node.js Developer more valuable than another on the open market, such as:
Their familiarity with development technologies such as Node Package Manager (npm) and Grunt.
Ability to deal with more challenging system difficulties, such as juggling user authentication and authorization across multiple systems and servers.
Working knowledge of agile and lean approaches.
Expertise in project management
Conclusion
To summarize, if you want to hire a Node.js developer or the backend with nodejs to get the best results and have your project successful, you should hunt for the finest organizations that outsource Node.js development services.Also, figure out how much money you're willing to spend on your project's development and hire a suitable Node.js engineer with that in mind. Depending on the length of project, you can choose from a variety of engagement options, such as freelancers or professional developers. Overall, finding a nodejs as backend developer with all the necessary skills is a manageable process that necessitates careful thought and examination of various aspects.
0 notes
stalen00bsblog · 6 years ago
Link
In this tutorial, we’re going to use Angular with HERE data, and display and interact with that geolocation data using Leaflet.
When it comes to development, I’m all about choosing the right tool for the job. While HERE offers a great interactive map component as part of its JavaScript SDK, there might be reasons to explore other interactive map rendering options. Take Leaflet for example. With Leaflet, you can provide your own tile layer while working with a very popular and easy to use open source library.
In a past tutorial, you’ll remember that I had demonstrated how to use Angular with HERE, but this time around we’re going to shake things up a bit. We’re going to use Angular with HERE data, but we’re going to display and interact with it using Leaflet.
To get a better idea of what we plan to accomplish, take a look at the following animated image:
Tumblr media
We’re going to display an interactive map, geocode some addresses, and display those addresses on the map as markers using Leaflet, Angular, and the HERE RESTful API.
Starting With a New Angular Project and the Leaflet Dependencies
Before going forward, the assumption is that you have the Angular CLI installed and that you have a free HERE developer account. With these requirements met, go ahead and execute the following command:
ng new leaflet-project
The above command will create our new Angular project, but that project won’t be ready to use Leaflet. We have to first include the necessary JavaScript and CSS files.
Open the project’s src/index.html file and make it look like the following:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>LeafletProject</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css">
</head>
<body>
<app-root></app-root>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
</body>
</html>
Notice that we’ve included the CSS library as well as the JavaScript library for Leaflet. Technically, this is all that is required to start using Leaflet with HERE in an Angular application. However, we’re going to do some more preparation work to set us up for some awesome features.
Open the project’s src/app/app.module.ts file and include the following:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Because we are no longer using the HERE JavaScript SDK, we are now relying on HTTP requests to the RESTful API. By default, HTTP in Angular is disabled, so by including the HttpClientModule and adding it to the imports array of the @NgModule block, we are enabling it.
While not absolutely necessary, we could also clean up the CSS a bit to allow us a full-screen map. Open the project’s src/styles.css file and include the following:
body {
margin: 0;
}
Now everything will take up the full width and height without the default margins.
It may seem like we’ve done a lot as of now, but it has been strictly configuration. Now we’re going to get into the fun stuff, which is development with Leaflet and Angular.
Create an Angular Component to Represent an Interactive HERE Map
While there are many ways to start using maps in your project, the cleanest approach is to create a dedicated Angular component so the maps can be reused throughout the application.
From the Angular CLI, execute the following:
ng g component here-map
The above command will generate several files for us that will represent our component. We’re going to start by opening the project’s src/app/here-map/here-map.component.html file and including the following markup:
<div #map [style.height]="height" ></div>
In the above markup, you’ll notice the #map attribute. We’re going to use this as a reference so we can access this DOM element from our TypeScript code. You’ll also notice that we have a dynamic height and a static width. It is easy to full screen the width of a component, but you have to be a CSS wizard to full screen the height. To cheat, we’re going to use JavaScript to determine the height and set it as a variable after everything initializes.
With the HTML in place, open the project’s src/app/here-map/here-map.component.ts file and include the following:
import { Component, OnInit, ViewChild, ElementRef, Input } from '@angular/core';
import { HttpClient } from '@angular/common/http';
declare var L: any;
@Component({
selector: 'here-map',
templateUrl: './here-map.component.html',
styleUrls: ['./here-map.component.css']
})
export class HereMapComponent implements OnInit {
@ViewChild("map")
public mapElement: ElementRef;
@Input("appId")
public appId: string;
@Input("appCode")
public appCode: string;
private map: any;
public srcTiles: string;
public height: string;
public constructor(private http: HttpClient) {
this.height = window.innerHeight + "px";
}
public ngOnInit() {
this.srcTiles = "https://2.base.maps.api.here.com/maptile/2.1/maptile/newest/reduced.day/{z}/{x}/{y}/512/png8?app_id=" + this.appId + "&app_code=" + this.appCode + "&ppi=320";
}
public ngAfterViewInit() {
this.map = L.map(this.mapElement.nativeElement, {
center: [37.7397, -121.4252],
zoom: 10,
layers: [L.tileLayer(this.srcTiles)],
zoomControl: true
});
}
public dropMarker(address: string) {
this.http.get("https://geocoder.api.here.com/6.2/geocode.json", {
params: {
app_id: this.appId,
app_code: this.appCode,
searchtext: address
}
}).subscribe(result => {
let location = result.Response.View[0].Result[0].Location.DisplayPosition;
let marker = new L.Marker([location.Latitude, location.Longitude]);
marker.addTo(this.map);
});
}
}
This file and the above code is the bulk of our project. To make things easier to understand, we’re going to look at the above code piece by piece.
Within the HereMapComponent class, we have the following:
@ViewChild("map")
public mapElement: ElementRef;
@Input("appId")
public appId: string;
@Input("appCode")
public appCode: string;
The ViewChild is referencing our #map attribute from the HTML. This is how we’re getting a reference to the HTML component for further usage. Each of the @Input annotations represents a possible attribute that the user can provide. In our example, the user will be providing the app id and app code found in their developer dashboard.
Remember that dynamic height I was talking about. We’re setting it here:
public constructor(private http: HttpClient) {
this.height = window.innerHeight + "px";
}
We are calculating the inner browser height and setting it using JavaScript. This way we can avoid all the tricky vertical height stuff that comes with standard CSS.
Because we’re using Leaflet, we’re relying heavily on the various HERE RESTful APIs and this includes the Map Tile API.
public ngOnInit() {
this.srcTiles = "https://2.base.maps.api.here.com/maptile/2.1/maptile/newest/reduced.day/{z}/{x}/{y}/512/png8?app_id=" + this.appId + "&app_code=" + this.appCode + "&ppi=320";
}
Using the provided app id and app code we can construct our URL for getting tiles from the API. This is set in the ngAfterViewInit when we initialize Leaflet.
public ngAfterViewInit() {
this.map = L.map(this.mapElement.nativeElement, {
center: [37.7397, -121.4252],
zoom: 10,
layers: [L.tileLayer(this.srcTiles)],
zoomControl: true
});
}
When initializing Leaflet, we are using the HTML component that we referenced, are centering the map on certain coordinates, and are using our HERE Tile API for the layer.
While we won’t be working with markers and geocoding by default, we’re going to lay the foundation within our component:
public dropMarker(address: string) {
this.http.get("https://geocoder.api.here.com/6.2/geocode.json", {
params: {
app_id: this.appId,
app_code: this.appCode,
searchtext: address
}
}).subscribe(result => {
let location = result.Response.View[0].Result[0].Location.DisplayPosition;
let marker = new L.Marker([location.Latitude, location.Longitude]);
marker.addTo(this.map);
});
}
When the dropMarker method is executed, we make a request to the HERE Geocoder API with a search query. In our scenario, the search query is an address or location. The results are then used to create a marker which is added to the map.
Before we can start using our new component, we need to wire it up. Open the project’s src/app/app.module.ts file and include the following:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { HereMapComponent } from './here-map/here-map.component';
@NgModule({
declarations: [
AppComponent,
HereMapComponent
],
imports: [
BrowserModule,
HttpClientModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Notice that this time around we have imported our component and added it to the declarations array of the @NgModule block.
The tough stuff is over and we can now work towards displaying our map.
Displaying and Interacting With the Angular Map Component
Since this is a simple project, we don’t have a router. Instead, everything will be rendered inside the project’s src/app/app.component.html file. Open this file and include the following:
<here-map #map appId="APP-ID-HERE" appCode="APP-CODE-HERE"></here-map>
There are a few things to take note of in the above. First, it is only coincidence that we’ve added a #mapattribute. We don’t truly need to add one and if we did, it doesn’t need to have the same name as the previous component. Second, notice the appId and appCode attributes. You’ll want to swap the placeholder values with your own tokens.
Now open the project’s src/app/app.component.ts file and include the following:
import { Component, OnInit, ElementRef, ViewChild } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent implements OnInit {
@ViewChild("map")
public mapElement: ElementRef;
public ngOnInit() { }
public ngAfterViewInit() {
this.mapElement.dropMarker("tracy, ca");
this.mapElement.dropMarker("lathrop, ca");
}
}
We want to be able to make use of the dropMarker function that sits in our map component. To do this we need to gain a reference to our HTML component with the #map attribute. Once we have a reference, then we can start calling the public functions that reside in it.
In our example, we are adding two markers for two cities in California.
Conclusion
You just saw how to use Leaflet in your Angular project to work with HERE data. HERE is flexible so you’re able to use whatever renderer you want to display your interactive maps. In my previous tutorialwe used the default renderer, but this time we used Leaflet which is just one of many options.
1 note · View note
coloss-us-blog · 6 years ago
Text
How to Get Into Google News - Whiteboard Friday
Posted by Polemic
Today we're tackling a question that many of us have asked over the years: how do you increase your chances of getting your content into Google News? We're delighted to welcome renowned SEO specialist Barry Adams to share the framework you need to have in place in order to have a chance of appearing in that much-coveted Google News carousel.
Tumblr media
Click on the whiteboard image above to open a high-resolution version in a new tab!
Video Transcription
Hi, everyone. I'm Barry Adams. I'm a technical SEO consultant at Polemic Digital and a specialist in news SEO. Today we're going to be talking about how to get into Google News. I get a lot of questions from a lot of people about Google News and specifically how you get a website into Google News, because it's a really great source of traffic for websites. Once you're in the Google News Index, you can appear in the top stories carousel in Google search results, and that can send a lot of traffic your way.
How do you get into Google News' manually curated index?
So how do you get into Google News? How do you go about getting your website to be a part of Google News' manual index so that you can get that top stories traffic for yourself? Well, it's not always as easy as it makes it appear. You have to jump through quite a few hoops before you get into Google News.
1. Have a dedicated news website
First of all, you have to have a dedicated news website. You have to keep in mind when you apply to be included in Google News, there's a team of Googlers who will manually review your website to decide whether or not you're worthy of being in the News index. That is a manual process, and your website has to be a dedicated news website.
I get a lot of questions from people asking if they have a news section or a blog on their site and if that could be included in Google News. The answer tends to be no. Google doesn't want news websites in there that aren't entirely about news, that are commercial websites that have a news section. They don't really want that. They want dedicated news websites, websites whose sole purpose is to provide news and content on specific topics and specific niches.
So that's the first hurdle and probably the most important one. If you can't clear that hurdle, you shouldn't even try getting into Google News.
2. Meet technical requirements
There are also a lot of other aspects that go into Google News. You have to jump through, like I said, quite a few hoops. Some technical requirements are very important to know as well.
Have static, unique URLs.
Google wants your articles and your section pages to have static, unique URLs so that an article or a section is always on the same URL and Google can crawl it and recrawl it on that URL without having to work with any redirects or other things. If you have content with dynamically generated URLs, that does not tend to work with Google News very well. So you have to keep that in mind and make sure that your content, both your articles and your static section pages are on fixed URLs that tend not to change over time.
Have your content in plain HTML.
It also helps to have all your content in plain HTML. Google News, when it indexes your content, it's all about speed. It tries to index articles as fast as possible. So any content that requires like client-side JavaScript or other sort of scripting languages tends not to work for Google News. Google has a two-stage indexing process, where the first stage is based on the HTML source code and the second stage is based on a complete render of the page, including executing JavaScript.
Tumblr media
For Google News, that doesn't work. If your content relies on JavaScript execution, it will never be seen by Google News. Google News only uses the first stage of indexing, based purely on the HTML source code. So keep your JavaScript to a minimum and make sure that the content of your articles is present in the HTML source code and does not require any JavaScript to be seen to be present.
Have clean code.
It also helps to have clean code. By clean code, I mean that the article content in the HTML source code should be one continuous block of code from the headline all the way to the end. That tends to result in the best and most efficient indexing in Google News, because I've seen many examples where websites put things in the middle of the article code, like related articles or video carousels, photo galleries, and that can really mess up how Google News indexes the content. So having clean code and make sure the article code is in one continuous block of easily understood HTML code tends to work the best for Google News.
3. Optional (but more or less mandatory) technical considerations
There's also quite a few other things that are technically optional, but I see them as pretty much mandatory because it really helps with getting your content picked up in Google News very fast and also makes sure you get that top stories carousel position as fast as possible, which is where you will get most of your news traffic from.
Have a news-specific XML sitemap.
Primarily the news XML sitemap, Google says this is optional but recommended, and I agree with them on that. Having a news-specific XML sitemap that lists articles that you've published in the last 48 hours, up to a maximum of 1,000 articles, is absolutely necessary. For me, I think this is Google News' primary discovery mechanism when they crawl your website and try to find new articles.
So that news-specific XML sitemap is absolutely crucial, and you want to make sure you have that in place before you submit your site to Google News.
Mark up articles with NewsArticle structured data.
I also think it's very important to mark up your articles with news article structured data. It can be just article structured data or even more specific structured data segments that Google is introducing, like news article analysis and news article opinion for specific types of articles.
But article or news article markup on your article pages is pretty much mandatory. I see your likelihood of getting into the top stories carousel much improved if you have that markup implemented on your article pages.
Helpful-to-have extras:
Also, like I said, this is a manually curated index. So there are a few extra hoops that you want to jump through to make sure that when a Googler looks at your website and reviews it, it ticks all the boxes and it appears like a trustworthy, genuine news website.
A. Multiple authors
Having multiple authors contribute to your website is hugely valuable, hugely important, and it does tend to elevate you above all the other blogs and small sites that are out there and makes it a bit more likely that the Googler reviewing your site will press that Approve button.
B. Daily updates
Having daily updates definitely is necessary. You don't want just one news post every couple of days. Ideally, multiple new articles every single day that also should be unique. You can have some sort of syndicated content on there, like from feeds, from AP or Reuters or whatever, but the majority of your content needs to be your own unique content. You don't want to rely too much on syndicated articles to fill your website with news content.
C. Mostly unique content
Try to write as much unique content as you possibly can. There isn't really a clear ratio for that. Generally speaking, I recommend my clients to have at least 70% of the content as unique stuff that they write themselves and publish themselves and only 30% maximum syndicated content from external sources.
D. Specialized niche/topic
It really helps to have a specialized niche or a specialized topic that you focus on as a news website. There are plenty of news sites out there that are general news and try to do everything, and Google News doesn't really need many more of those. What Google is interested in is niche websites on specific topics, specific areas that can provide in-depth reporting on those specific industries or topics. So if you have a very niche topic or a niche industry that you cover with your news, it does tend to improve your chances of getting into that News Index and getting that top stories carousel traffic.
So that, in a nutshell, is how you get into Google News. It might appear to be quite simple, but, like I said, quite a few hoops for you to jump through, a few technical things you have to implement on your website as well. But if you tick all those boxes, you can get so much traffic from the top stories carousel, and the rest is profit. Thank you very much.
This has been my Whiteboard Friday.
Further resources:
Google News Help
Publisher Center Help
Google News Initiative
Optimizing for Google News: A SlideShare presentation from Barry's talk at Digitalzone 2018 discussing how to optimize websites for visibility in Google News.
Video transcription by Speechpad.com
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don't have time to hunt down but want to read!
2 notes · View notes
monoxaos-blog · 6 years ago
Text
How to Get Into Google News - Whiteboard Friday
Posted by Polemic
Today we're tackling a question that many of us have asked over the years: how do you increase your chances of getting your content into Google News? We're delighted to welcome renowned SEO specialist Barry Adams to share the framework you need to have in place in order to have a chance of appearing in that much-coveted Google News carousel.
Tumblr media
Click on the whiteboard image above to open a high-resolution version in a new tab!
Video Transcription
Hi, everyone. I'm Barry Adams. I'm a technical SEO consultant at Polemic Digital and a specialist in news SEO. Today we're going to be talking about how to get into Google News. I get a lot of questions from a lot of people about Google News and specifically how you get a website into Google News, because it's a really great source of traffic for websites. Once you're in the Google News Index, you can appear in the top stories carousel in Google search results, and that can send a lot of traffic your way.
How do you get into Google News' manually curated index?
So how do you get into Google News? How do you go about getting your website to be a part of Google News' manual index so that you can get that top stories traffic for yourself? Well, it's not always as easy as it makes it appear. You have to jump through quite a few hoops before you get into Google News.
1. Have a dedicated news website
First of all, you have to have a dedicated news website. You have to keep in mind when you apply to be included in Google News, there's a team of Googlers who will manually review your website to decide whether or not you're worthy of being in the News index. That is a manual process, and your website has to be a dedicated news website.
I get a lot of questions from people asking if they have a news section or a blog on their site and if that could be included in Google News. The answer tends to be no. Google doesn't want news websites in there that aren't entirely about news, that are commercial websites that have a news section. They don't really want that. They want dedicated news websites, websites whose sole purpose is to provide news and content on specific topics and specific niches.
So that's the first hurdle and probably the most important one. If you can't clear that hurdle, you shouldn't even try getting into Google News.
2. Meet technical requirements
There are also a lot of other aspects that go into Google News. You have to jump through, like I said, quite a few hoops. Some technical requirements are very important to know as well.
Have static, unique URLs.
Google wants your articles and your section pages to have static, unique URLs so that an article or a section is always on the same URL and Google can crawl it and recrawl it on that URL without having to work with any redirects or other things. If you have content with dynamically generated URLs, that does not tend to work with Google News very well. So you have to keep that in mind and make sure that your content, both your articles and your static section pages are on fixed URLs that tend not to change over time.
Have your content in plain HTML.
It also helps to have all your content in plain HTML. Google News, when it indexes your content, it's all about speed. It tries to index articles as fast as possible. So any content that requires like client-side JavaScript or other sort of scripting languages tends not to work for Google News. Google has a two-stage indexing process, where the first stage is based on the HTML source code and the second stage is based on a complete render of the page, including executing JavaScript.
Tumblr media
For Google News, that doesn't work. If your content relies on JavaScript execution, it will never be seen by Google News. Google News only uses the first stage of indexing, based purely on the HTML source code. So keep your JavaScript to a minimum and make sure that the content of your articles is present in the HTML source code and does not require any JavaScript to be seen to be present.
Have clean code.
It also helps to have clean code. By clean code, I mean that the article content in the HTML source code should be one continuous block of code from the headline all the way to the end. That tends to result in the best and most efficient indexing in Google News, because I've seen many examples where websites put things in the middle of the article code, like related articles or video carousels, photo galleries, and that can really mess up how Google News indexes the content. So having clean code and make sure the article code is in one continuous block of easily understood HTML code tends to work the best for Google News.
3. Optional (but more or less mandatory) technical considerations
There's also quite a few other things that are technically optional, but I see them as pretty much mandatory because it really helps with getting your content picked up in Google News very fast and also makes sure you get that top stories carousel position as fast as possible, which is where you will get most of your news traffic from.
Have a news-specific XML sitemap.
Primarily the news XML sitemap, Google says this is optional but recommended, and I agree with them on that. Having a news-specific XML sitemap that lists articles that you've published in the last 48 hours, up to a maximum of 1,000 articles, is absolutely necessary. For me, I think this is Google News' primary discovery mechanism when they crawl your website and try to find new articles.
So that news-specific XML sitemap is absolutely crucial, and you want to make sure you have that in place before you submit your site to Google News.
Mark up articles with NewsArticle structured data.
I also think it's very important to mark up your articles with news article structured data. It can be just article structured data or even more specific structured data segments that Google is introducing, like news article analysis and news article opinion for specific types of articles.
But article or news article markup on your article pages is pretty much mandatory. I see your likelihood of getting into the top stories carousel much improved if you have that markup implemented on your article pages.
Helpful-to-have extras:
Also, like I said, this is a manually curated index. So there are a few extra hoops that you want to jump through to make sure that when a Googler looks at your website and reviews it, it ticks all the boxes and it appears like a trustworthy, genuine news website.
A. Multiple authors
Having multiple authors contribute to your website is hugely valuable, hugely important, and it does tend to elevate you above all the other blogs and small sites that are out there and makes it a bit more likely that the Googler reviewing your site will press that Approve button.
B. Daily updates
Having daily updates definitely is necessary. You don't want just one news post every couple of days. Ideally, multiple new articles every single day that also should be unique. You can have some sort of syndicated content on there, like from feeds, from AP or Reuters or whatever, but the majority of your content needs to be your own unique content. You don't want to rely too much on syndicated articles to fill your website with news content.
C. Mostly unique content
Try to write as much unique content as you possibly can. There isn't really a clear ratio for that. Generally speaking, I recommend my clients to have at least 70% of the content as unique stuff that they write themselves and publish themselves and only 30% maximum syndicated content from external sources.
D. Specialized niche/topic
It really helps to have a specialized niche or a specialized topic that you focus on as a news website. There are plenty of news sites out there that are general news and try to do everything, and Google News doesn't really need many more of those. What Google is interested in is niche websites on specific topics, specific areas that can provide in-depth reporting on those specific industries or topics. So if you have a very niche topic or a niche industry that you cover with your news, it does tend to improve your chances of getting into that News Index and getting that top stories carousel traffic.
So that, in a nutshell, is how you get into Google News. It might appear to be quite simple, but, like I said, quite a few hoops for you to jump through, a few technical things you have to implement on your website as well. But if you tick all those boxes, you can get so much traffic from the top stories carousel, and the rest is profit. Thank you very much.
This has been my Whiteboard Friday.
Further resources:
Google News Help
Publisher Center Help
Google News Initiative
Optimizing for Google News: A SlideShare presentation from Barry's talk at Digitalzone 2018 discussing how to optimize websites for visibility in Google News.
Video transcription by Speechpad.com
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don't have time to hunt down but want to read!
2 notes · View notes
un-chat-sauvage-blog · 6 years ago
Text
How to Get Into Google News - Whiteboard Friday
Posted by Polemic
Today we're tackling a question that many of us have asked over the years: how do you increase your chances of getting your content into Google News? We're delighted to welcome renowned SEO specialist Barry Adams to share the framework you need to have in place in order to have a chance of appearing in that much-coveted Google News carousel.
Tumblr media
Click on the whiteboard image above to open a high-resolution version in a new tab!
Video Transcription
Hi, everyone. I'm Barry Adams. I'm a technical SEO consultant at Polemic Digital and a specialist in news SEO. Today we're going to be talking about how to get into Google News. I get a lot of questions from a lot of people about Google News and specifically how you get a website into Google News, because it's a really great source of traffic for websites. Once you're in the Google News Index, you can appear in the top stories carousel in Google search results, and that can send a lot of traffic your way.
How do you get into Google News' manually curated index?
So how do you get into Google News? How do you go about getting your website to be a part of Google News' manual index so that you can get that top stories traffic for yourself? Well, it's not always as easy as it makes it appear. You have to jump through quite a few hoops before you get into Google News.
1. Have a dedicated news website
First of all, you have to have a dedicated news website. You have to keep in mind when you apply to be included in Google News, there's a team of Googlers who will manually review your website to decide whether or not you're worthy of being in the News index. That is a manual process, and your website has to be a dedicated news website.
I get a lot of questions from people asking if they have a news section or a blog on their site and if that could be included in Google News. The answer tends to be no. Google doesn't want news websites in there that aren't entirely about news, that are commercial websites that have a news section. They don't really want that. They want dedicated news websites, websites whose sole purpose is to provide news and content on specific topics and specific niches.
So that's the first hurdle and probably the most important one. If you can't clear that hurdle, you shouldn't even try getting into Google News.
2. Meet technical requirements
There are also a lot of other aspects that go into Google News. You have to jump through, like I said, quite a few hoops. Some technical requirements are very important to know as well.
Have static, unique URLs.
Google wants your articles and your section pages to have static, unique URLs so that an article or a section is always on the same URL and Google can crawl it and recrawl it on that URL without having to work with any redirects or other things. If you have content with dynamically generated URLs, that does not tend to work with Google News very well. So you have to keep that in mind and make sure that your content, both your articles and your static section pages are on fixed URLs that tend not to change over time.
Have your content in plain HTML.
It also helps to have all your content in plain HTML. Google News, when it indexes your content, it's all about speed. It tries to index articles as fast as possible. So any content that requires like client-side JavaScript or other sort of scripting languages tends not to work for Google News. Google has a two-stage indexing process, where the first stage is based on the HTML source code and the second stage is based on a complete render of the page, including executing JavaScript.
Tumblr media
For Google News, that doesn't work. If your content relies on JavaScript execution, it will never be seen by Google News. Google News only uses the first stage of indexing, based purely on the HTML source code. So keep your JavaScript to a minimum and make sure that the content of your articles is present in the HTML source code and does not require any JavaScript to be seen to be present.
Have clean code.
It also helps to have clean code. By clean code, I mean that the article content in the HTML source code should be one continuous block of code from the headline all the way to the end. That tends to result in the best and most efficient indexing in Google News, because I've seen many examples where websites put things in the middle of the article code, like related articles or video carousels, photo galleries, and that can really mess up how Google News indexes the content. So having clean code and make sure the article code is in one continuous block of easily understood HTML code tends to work the best for Google News.
3. Optional (but more or less mandatory) technical considerations
There's also quite a few other things that are technically optional, but I see them as pretty much mandatory because it really helps with getting your content picked up in Google News very fast and also makes sure you get that top stories carousel position as fast as possible, which is where you will get most of your news traffic from.
Have a news-specific XML sitemap.
Primarily the news XML sitemap, Google says this is optional but recommended, and I agree with them on that. Having a news-specific XML sitemap that lists articles that you've published in the last 48 hours, up to a maximum of 1,000 articles, is absolutely necessary. For me, I think this is Google News' primary discovery mechanism when they crawl your website and try to find new articles.
So that news-specific XML sitemap is absolutely crucial, and you want to make sure you have that in place before you submit your site to Google News.
Mark up articles with NewsArticle structured data.
I also think it's very important to mark up your articles with news article structured data. It can be just article structured data or even more specific structured data segments that Google is introducing, like news article analysis and news article opinion for specific types of articles.
But article or news article markup on your article pages is pretty much mandatory. I see your likelihood of getting into the top stories carousel much improved if you have that markup implemented on your article pages.
Helpful-to-have extras:
Also, like I said, this is a manually curated index. So there are a few extra hoops that you want to jump through to make sure that when a Googler looks at your website and reviews it, it ticks all the boxes and it appears like a trustworthy, genuine news website.
A. Multiple authors
Having multiple authors contribute to your website is hugely valuable, hugely important, and it does tend to elevate you above all the other blogs and small sites that are out there and makes it a bit more likely that the Googler reviewing your site will press that Approve button.
B. Daily updates
Having daily updates definitely is necessary. You don't want just one news post every couple of days. Ideally, multiple new articles every single day that also should be unique. You can have some sort of syndicated content on there, like from feeds, from AP or Reuters or whatever, but the majority of your content needs to be your own unique content. You don't want to rely too much on syndicated articles to fill your website with news content.
C. Mostly unique content
Try to write as much unique content as you possibly can. There isn't really a clear ratio for that. Generally speaking, I recommend my clients to have at least 70% of the content as unique stuff that they write themselves and publish themselves and only 30% maximum syndicated content from external sources.
D. Specialized niche/topic
It really helps to have a specialized niche or a specialized topic that you focus on as a news website. There are plenty of news sites out there that are general news and try to do everything, and Google News doesn't really need many more of those. What Google is interested in is niche websites on specific topics, specific areas that can provide in-depth reporting on those specific industries or topics. So if you have a very niche topic or a niche industry that you cover with your news, it does tend to improve your chances of getting into that News Index and getting that top stories carousel traffic.
So that, in a nutshell, is how you get into Google News. It might appear to be quite simple, but, like I said, quite a few hoops for you to jump through, a few technical things you have to implement on your website as well. But if you tick all those boxes, you can get so much traffic from the top stories carousel, and the rest is profit. Thank you very much.
This has been my Whiteboard Friday.
Further resources:
Google News Help
Publisher Center Help
Google News Initiative
Optimizing for Google News: A SlideShare presentation from Barry's talk at Digitalzone 2018 discussing how to optimize websites for visibility in Google News.
Video transcription by Speechpad.com
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don't have time to hunt down but want to read!
3 notes · View notes
miniwank-blog · 7 years ago
Text
Egretia - Bring Developers and HTML5 Terminals to the Blockchain World
Egretia Ad Platforms : Distributed Communications and Storage Platform :
Tumblr media
As a cross-platform arrangement, HTML5 innovation has been internationally perceived. It covers the Internet, video, promoting and different ventures, with the worldwide market size of many billions dollars
This task participating with Egret Technology, an internationally understood HTML5 technology specialist organization, set up Egretia Blockchain Lab, joining blockchain with HTML5 technology to make the world's first HTML5 blockchain motor and platform, going for applying blockchain to vertical businesses. Bringing Egret technology’s current 200,000 designers and 1 billion portable terminal gadgets into the blockchain world, this undertaking has commonsense and broad criticalness 
What is HTML5 Technology?
HTML5 is the most recent form of Hypertext Markup Language, the code that portrays site pages. It's really three sorts of code: HTML, which gives the structure; Cascading Style Sheets (CSS), which deal with introduction; and JavaScript, which gets things going 
Utilizing the energy of portable long range informal communication, HTML5 content has been broadly scattered in versatile applications and made altogether new plans of action
Tumblr media
What is BlockChain Technology?
A blockchain,originally square chain,is a consistently developing rundown of records, called pieces, which are connected and secured utilizing cryptography.Each square regularly contains a cryptographic hash of the past block,a timestamp and exchange data.By plan, a blockchain is characteristically impervious to adjustment of the information. It is "an open, circulated record that can record exchanges between two gatherings proficiently and in a certain and changeless way".For use as a disseminated record, a blockchain is regularly overseen by a shared system all in all holding fast to a convention for between hub correspondence and approving new squares. Once recorded, the information in any given piece can't be changed retroactively without the adjustment of every single consequent square, which requires agreement of the system dominant part.
Blockchains are secure by plan and embody an appropriated processing framework with high Byzantine adaptation to non-critical failure. Decentralized agreement has along these lines been accomplished with a blockchain.This makes blockchains conceivably appropriate for the chronicle of occasions, medicinal records,and different records administration exercises, for example, character management,transaction preparing, reporting provenance, nourishment traceability or voting.
Tumblr media
World's First HTML5 Blockchain Engine and Platform In organization with Egret Technology, the worldwide pioneer in the HTML5 business, Egretia focused on building the world's first HTML5 blockchain motor and platform, joining blockchain technology with demonstrated devices, groups and substance of our accomplices, expecting to bring 200,000 developers and 1 billion mobile devices into the blockchain world.
Building a Decentralized HTML5 User Ecosystem 
Fueled by the Egret Engine, HTML5 content has more than 75% promoting infiltration in the HTML5 business, covering in excess of 1 billion mobile devices furthermore, clients. We will join the Egretia blockchain with Egret HTML5 work processes. Utilizing a token system, each player will have a one of a kind ID in diversions controlled by the Egret Engine. This will assemble a strong establishment for a steady client ecosystem.
Creating an Ecosystem With True Token Circulation
In light of the client ecosystem of Egretia, we are dedicated to producing another computerized token that can be utilized as a part of all substance fueled by the Egret Engine: Egreten. • Developers will utilize settled devices + SDKs to rapidly create items that will utilize the Egreten token as installment. • Users can utilize Egreten to purchase in-amusement things, pay for content, and so on. • Users can utilize Egreten to participate in lotteries, rebates, and different advancements on Egretia over the world. • Users can get Egreten as reward through taking an interest in crowdfunding of recreations on Egretia. • Developers and substance distributers can utilize Egreten to promote on the Egretia promoting stage. • Distributors can get Egreten through substance conveyance, promoting, and so forth. • An Egreten computerized wallet is made in light of client's remarkable token travel permit, in request to ensure safe stockpiling of client's virtual resources, products, crowdfunding rewards, platform rewards, and so on.
Tumblr media
Egretia  key Products and Services
*  Blockchain Game Dev Workflow   :  The world's initially entire HTML5 blockchain motor and improvement unit, will enable engineers to rapidly and productively create blockchain recreations and applications.
*  Distributed Communications and Storage Platform :  The stage will use the blockchain's hub mode, giving decentralized information correspondences also, capacity arrangements.
* Game Distribution Platform :  This platform is our authority Egretia DApp: Players can get Egreten through the application, play HTML5 recreations on this platform , make installments through Egreten. Utilizing the Proof-of-Game (POG) instrument, players can get Egreten remunerates by playing or offering diversions to companions
* Virtual Goods Trading Platform :   Utilizing Egreten, all players in Egretia recreations can exchange their virtual products on this platform.
* Egretia Ad Platforms :   An exactness promoting framework, in view of blockchain KYC standards, brilliant contracts, and platform computerized tokens.
* Egretia Incubator :   Our hatchery bolsters diversion improvement groups and people, making a scaffold amongst players and designers.
Egretia Features
* Egretia Features :  We will give Egretia, a self-created, proficient open chain in light of the DPoS (Designated Proof of Stake) agreement component, going for streamlining HTML5 amusement execution. Through the blockchain interface layer, in mix with the Egret motor devices, designers can rapidly make blockchain-based DApps
*Consensus Mechanisms  :   The Egretia open chain will utilize a DPoS (Delegated Proof of Stake) as accord instrument. The DPoS system is like a board vote, where holders of coins cast a certain number of hubs, utilizing the system for check and accounting. DPoS can essentially diminish the quantity of taking an interest hubs for check also, accounting, it will have the capacity to accomplish agreement confirmation in a moment. The dependability of DPoS component has been checked in BTS, EOS and different undertakings
* High-Performance  :   Egretia is an open chain with high simultaneous handling power, where execution is advanced for the necessities of the diversion business. It has a quick TPS (Transaction Per Second) rate. Regardless, in blockchain innovation, an "outlandish triangle" exists, implying that adaptability, decentralization, and security can't be accomplished at the same time. Utilizing a DPoS component to significantly build adaptability, in excess of 2000 exchanges every second could be upheld in the underlying test chain. Later on, we will increment the TPS as indicated by business needs.
*Real time parameter adjustment :  Egretia can change framework parameters without bifurcation: Instead, Egretia will be ready to change blocktime, blocksize, exchange charge and so forth through voting. Egretia can alter the framework parameters without bifurcation: Instead, Egretia will have the capacity to understand a dynamic change of parameters, for example, blocksize, yield speed, and dealing with charge through voting strategy in view of agreement.
*Convenient and efficient development tools  :   The demonstrated devices of Egret establishes a strong framework for the Egretia blockchain venture, making blockchain application improvement basic, advantageous and effective.
Lab Core Team
Peter Huang
Tumblr media
Dirk Meyer
Tumblr media
Yin Ma
Tumblr media
Ross Przybylski
Tumblr media
Advisors
Lucas Lu
Tumblr media
Frank Lee
Tumblr media
Yao Yong
Tumblr media
Hongfei tian
Tumblr media
Egretia website : https://egretia.io/Egretia White-paper: https://egretia.io/static/Egretia_White_Paper_EN_V1.1.pdf
Bitcointalk profile : https://bitcointalk.org/index.php?action=profile;u=1583686
youtube
youtube
91 notes · View notes
mypersonalparadox-blog1 · 6 years ago
Text
How to Get Into Google News - Whiteboard Friday
Posted by Polemic
Today we're tackling a question that many of us have asked over the years: how do you increase your chances of getting your content into Google News? We're delighted to welcome renowned SEO specialist Barry Adams to share the framework you need to have in place in order to have a chance of appearing in that much-coveted Google News carousel.
Tumblr media
Click on the whiteboard image above to open a high-resolution version in a new tab!
Video Transcription
Hi, everyone. I'm Barry Adams. I'm a technical SEO consultant at Polemic Digital and a specialist in news SEO. Today we're going to be talking about how to get into Google News. I get a lot of questions from a lot of people about Google News and specifically how you get a website into Google News, because it's a really great source of traffic for websites. Once you're in the Google News Index, you can appear in the top stories carousel in Google search results, and that can send a lot of traffic your way.
How do you get into Google News' manually curated index?
So how do you get into Google News? How do you go about getting your website to be a part of Google News' manual index so that you can get that top stories traffic for yourself? Well, it's not always as easy as it makes it appear. You have to jump through quite a few hoops before you get into Google News.
1. Have a dedicated news website
First of all, you have to have a dedicated news website. You have to keep in mind when you apply to be included in Google News, there's a team of Googlers who will manually review your website to decide whether or not you're worthy of being in the News index. That is a manual process, and your website has to be a dedicated news website.
I get a lot of questions from people asking if they have a news section or a blog on their site and if that could be included in Google News. The answer tends to be no. Google doesn't want news websites in there that aren't entirely about news, that are commercial websites that have a news section. They don't really want that. They want dedicated news websites, websites whose sole purpose is to provide news and content on specific topics and specific niches.
So that's the first hurdle and probably the most important one. If you can't clear that hurdle, you shouldn't even try getting into Google News.
2. Meet technical requirements
There are also a lot of other aspects that go into Google News. You have to jump through, like I said, quite a few hoops. Some technical requirements are very important to know as well.
Have static, unique URLs.
Google wants your articles and your section pages to have static, unique URLs so that an article or a section is always on the same URL and Google can crawl it and recrawl it on that URL without having to work with any redirects or other things. If you have content with dynamically generated URLs, that does not tend to work with Google News very well. So you have to keep that in mind and make sure that your content, both your articles and your static section pages are on fixed URLs that tend not to change over time.
Have your content in plain HTML.
It also helps to have all your content in plain HTML. Google News, when it indexes your content, it's all about speed. It tries to index articles as fast as possible. So any content that requires like client-side JavaScript or other sort of scripting languages tends not to work for Google News. Google has a two-stage indexing process, where the first stage is based on the HTML source code and the second stage is based on a complete render of the page, including executing JavaScript.
Tumblr media
For Google News, that doesn't work. If your content relies on JavaScript execution, it will never be seen by Google News. Google News only uses the first stage of indexing, based purely on the HTML source code. So keep your JavaScript to a minimum and make sure that the content of your articles is present in the HTML source code and does not require any JavaScript to be seen to be present.
Have clean code.
It also helps to have clean code. By clean code, I mean that the article content in the HTML source code should be one continuous block of code from the headline all the way to the end. That tends to result in the best and most efficient indexing in Google News, because I've seen many examples where websites put things in the middle of the article code, like related articles or video carousels, photo galleries, and that can really mess up how Google News indexes the content. So having clean code and make sure the article code is in one continuous block of easily understood HTML code tends to work the best for Google News.
3. Optional (but more or less mandatory) technical considerations
There's also quite a few other things that are technically optional, but I see them as pretty much mandatory because it really helps with getting your content picked up in Google News very fast and also makes sure you get that top stories carousel position as fast as possible, which is where you will get most of your news traffic from.
Have a news-specific XML sitemap.
Primarily the news XML sitemap, Google says this is optional but recommended, and I agree with them on that. Having a news-specific XML sitemap that lists articles that you've published in the last 48 hours, up to a maximum of 1,000 articles, is absolutely necessary. For me, I think this is Google News' primary discovery mechanism when they crawl your website and try to find new articles.
So that news-specific XML sitemap is absolutely crucial, and you want to make sure you have that in place before you submit your site to Google News.
Mark up articles with NewsArticle structured data.
I also think it's very important to mark up your articles with news article structured data. It can be just article structured data or even more specific structured data segments that Google is introducing, like news article analysis and news article opinion for specific types of articles.
But article or news article markup on your article pages is pretty much mandatory. I see your likelihood of getting into the top stories carousel much improved if you have that markup implemented on your article pages.
Helpful-to-have extras:
Also, like I said, this is a manually curated index. So there are a few extra hoops that you want to jump through to make sure that when a Googler looks at your website and reviews it, it ticks all the boxes and it appears like a trustworthy, genuine news website.
A. Multiple authors
Having multiple authors contribute to your website is hugely valuable, hugely important, and it does tend to elevate you above all the other blogs and small sites that are out there and makes it a bit more likely that the Googler reviewing your site will press that Approve button.
B. Daily updates
Having daily updates definitely is necessary. You don't want just one news post every couple of days. Ideally, multiple new articles every single day that also should be unique. You can have some sort of syndicated content on there, like from feeds, from AP or Reuters or whatever, but the majority of your content needs to be your own unique content. You don't want to rely too much on syndicated articles to fill your website with news content.
C. Mostly unique content
Try to write as much unique content as you possibly can. There isn't really a clear ratio for that. Generally speaking, I recommend my clients to have at least 70% of the content as unique stuff that they write themselves and publish themselves and only 30% maximum syndicated content from external sources.
D. Specialized niche/topic
It really helps to have a specialized niche or a specialized topic that you focus on as a news website. There are plenty of news sites out there that are general news and try to do everything, and Google News doesn't really need many more of those. What Google is interested in is niche websites on specific topics, specific areas that can provide in-depth reporting on those specific industries or topics. So if you have a very niche topic or a niche industry that you cover with your news, it does tend to improve your chances of getting into that News Index and getting that top stories carousel traffic.
So that, in a nutshell, is how you get into Google News. It might appear to be quite simple, but, like I said, quite a few hoops for you to jump through, a few technical things you have to implement on your website as well. But if you tick all those boxes, you can get so much traffic from the top stories carousel, and the rest is profit. Thank you very much.
This has been my Whiteboard Friday.
Further resources:
Google News Help
Publisher Center Help
Google News Initiative
Optimizing for Google News: A SlideShare presentation from Barry's talk at Digitalzone 2018 discussing how to optimize websites for visibility in Google News.
Video transcription by Speechpad.com
Sign up for The Moz Top 10, a semimonthly mailer updating you on the top ten hottest pieces of SEO news, tips, and rad links uncovered by the Moz team. Think of it as your exclusive digest of stuff you don't have time to hunt down but want to read!
1 note · View note
xto10x-blog · 7 years ago
Text
Getting started with SEO for Dynamic sites like Angular, React, JavaScript etc.
A lot of modern sites use Single Page Applications (dynamic sites like Angular, React, JavaScript) which has performance/UX benefits. But these sites usually return empty HTML file initially which makes SEO crawl difficult. Even though Google is getting better in crawling dynamic sites it’s not great at this moment. Worry not, you have a workaround for it.
Dynamic Rendering – switching between client-side rendered and pre-rendered content for specific user agents. When you render the app on the server first (using pre-rendering/server-side rendering) the user (and bots) get a fully rendered HTML page – problem solved.
Tumblr media
Dynamic rendering for dummier
How Dynamic Rendering works.?
Dynamic rendering requires your web server to detect crawlers (for example, by checking the user agent). Requests from crawlers are routed to a renderer, requests from users are served normally. Where needed, the dynamic renderer serves a version of the content that's suitable to the crawler, for example, it may serve a static HTML version. You can choose to enable the dynamic renderer for all pages or on a per-page basis.
Tumblr media
how dynamic rendering works
Implementing Dynamic Rendering
Install and configure a dynamic renderer to transform your content into static HTML that's easier for crawlers to consume. Some common dynamic renderers are Puppeteer, Rendertron, and prerender.io.
Choose the user agents that you think should receive your static HTML and refer to your specific configuration details on how to update or add user agents. Here's an example of a list of common user agents in the Rendertron middleware:
export const botUserAgents = [  'googlebot',  'google-structured-data-testing-tool',  'bingbot',  'linkedinbot',  'mediapartners-google', ];
If pre-rendering slows down your server or you see a high number of pre-rendering requests, consider implementing a cache for pre-rendered content, or verifying that requests are from legitimate crawlers.
Determine if the user agents require desktop or mobile content. Use dynamic serving to provide the appropriate desktop or mobile version. Here's an example of how a configuration could determine if a user agent requires desktop or mobile content:
isPrerenderedUA = userAgent.matches(botUserAgents) isMobileUA = userAgent.matches(['mobile', 'android']) if (!isPrerenderedUA) { } else {   servePreRendered(isMobileUA) }
In this example, use if (!isPrerenderedUA) {...} to serve regular, client-side rendered content. Use else { servePreRendered(isMobileUA)} to serve the mobile version, if needed.
Configure your server to deliver the static HTML to the crawlers that you selected. There are several ways you can do this depending on your technology; here are a few examples:
Proxy requests coming from crawlers to the dynamic renderer.
Pre-render as part of your deployment process and make your server serve the static HTML to crawlers.
Build dynamic rendering into your custom server code.
Serve static content from a pre-rendering service to crawlers.
Use a middleware for your server (for example, the rendertron middleware).
Verify your configuration
After implementing dynamic rendering, verify if everything is working by following the below steps.
Test your mobile content with the Mobile-Friendly Test to make sure Google can see your content.
Test your desktop content with Fetch as Google to make sure that the desktop content is also visible on the rendered page (the rendered page is how Googlebot sees your page).
If you use structured data, test that your structured data renders properly with the Structured Data Testing Tool.
Troubleshooting
Even after following the steps if your site isn’t appearing in Google search results.? Try troubleshooting with following steps.
Content is incomplete or looks different
What caused the issue: Your renderer might be misconfigured or your web application might be incompatible with your rendering solution. Sometimes timeouts can also cause content to not be rendered correctly.
Fix the issue: Refer to the documentation for your specific rendering solution to debug your dynamic rendering setup.
High response times
What caused the issue: Using a headless browser to render pages on demand often causes high response times, which can cause crawlers to cancel the request and not index your content. High response times can also result in crawlers reducing their crawl-rate when crawling and indexing your content.
Fix the issue
Set up a cache for the pre-rendered HTML or create a static HTML version of your content as part of your build process.
Make sure to enable the cache in your configuration (for example, by pointing crawlers to your cache).
Check that crawlers get your content quickly by using testing tools such as the Mobile-Friendly Test or webpagetest (with a custom user agent string from the list of Google Crawler user agents). Your requests should not time out.
Structured data is missing
What caused the issue: Missing the structured data user agent, or not including JSON-LD script tags in the output can cause structured data errors.
Fix the issue
Use the Structured Data Testing Tool to make sure the structured data is present on the page. Then configure the user agent for the Structured Data Testing Tool to test the pre-rendered content.
Make sure JSON-LD script tags are included in the dynamically rendered HTML of your content. Consult the documentation of your rendering solution for more information.
Smoke Tests for dynamic rendering
Here’s a little more nuance to server side rendering troubleshooting based on some real-world situations we’ve encountered.
How To Test Server Side Rendering On A New Site Before It’s Launched
It often is the case that SEOs get brought into the process well after a site has been built, but only a few days before it will be launched. We will need a way to test the new site in Google without competing in Google with the old site. For a variety of reasons we don’t want the entire new site to get crawled and indexed, but we want to know that Googlebot can index the content on a URL, that it can crawl internal links and that it can rank for relevant queries. Here’s how to do this:
Create test URLs on new site for each template (or use URLs that have already been built) and make sure they are linked from the home page.
Add a robots.txt file that allows only these test URLs to be crawled.
Here’s an example: User-Agent: Googlebot Disallow: / (this means don’t crawl the entire site) Allow: /$ (allow Gbot to crawl only the home page even though the rest of the site is blocked in the line above) Allow: /test-directory/$ (allow crawling of just the /test-directory/ URL) Allow: /test-directory/test-url (allow crawling of /test-directory/test-url)(you can add as many URLs as you want to test – the more you test, the more certain you can be, but a handful is usually fine)
Once the robots.txt is set up, verify the test site in Google Search Console.
Use the Fetch as Google tool to fetch and render the home page and request crawling of all linked URLs. We will be testing here that Google can index all of the content on the home page and can crawl the links to find the test URLs. You can view how the content on the home page looks in the Fetch tool, but I wouldn’t necessarily trust it – we sometimes see this tool out of sync with what actually appears in Google.
In a few minutes, at least the test home page should be indexed. Do exact match searches for text that appears in the title tag and in the body of the home page. If the text is generic, you may have to include  site:domain.com in your query to focus only on the test domain. You are looking for your test URL to show up in the results. This is a signal that at least Google can index and understand the content on your homepage. This does not mean the page will rank well, but at least it now has a shot.
If the test links are crawlable, soon you should the test URLs linked from the home page show up in Google. Do the same tests. If they don’t show up within 24 hours, while this doesn’t necessarily mean the links aren’t crawlable, it’s at least a signal in that direction. You can also look at the text-only cache of the indexed test home page. If the links are crawlable, you should see them there.
If you want to get more data, unblock more URLs in robots.txt and request more indexing.
Once you have finished the test, request removal of the test domain in GSC via the Remove URLs tool.
We often can get this process done in 24 hours, but we recommend to clients giving it a week in case we run into any issues.
Pro-tip: If you are using Chrome and looking at a test URL for the SEO content like title tag text, often SEO extensions and viewing the source will only show the “hooks” (e.g. {metaservice.metaTitle}) and not the actual text. Open Chrome Developer Tools and look in the Elements section. The SEO stuff should be there.
Do Not Block Googlebot on Your PreRender Server
Believe it or not, we had a client do this. Someone was afraid that Googlebot was going to eat up a lot of bandwidth and cost them $. I guess they were less afraid of not making money to pay for that bandwidth.
Do Not Throttle Googlebot on Your PreRender Server
We convinced the same client to unblock Googlebot, but noticed in Google Search Console’s crawl report that pages crawled per day was very low. Again someone was trying to save money in a way that guaranteed them to lose money. There may be some threshold where you may want to limit Googlebot’s crawling, but my sense is Googlebot is pretty good at figuring that out for you.
1 note · View note